package com.hxc.interest.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.hxc.common.annotation.Excel;
import com.hxc.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 乡村简介对象 t_summary_info
 * 
 * @author hxc
 * @date 2021-08-20
 */
public class TSummaryInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;
    /** 标题 */
    @Excel(name = "标题")
    private String title;
    /** 类型 */
    @Excel(name = "类型")
    private String summaryType;
    /** 内容 */
    private String content;
    /** 地址 */
    @Excel(name = "地址")
    private String address;
    /** 轮播图 */
    @Excel(name = "轮播图")
    private String bannerImg;

    /** 轮播图数组 */
    @TableField(exist = false)
    private String[] imgList;

    public void setId(Long id) 
    {
        this.id = id;
    }
    public Long getId() 
    {
        return id;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }
    public String getTitle() 
    {
        return title;
    }

    public void setSummaryType(String summaryType) 
    {
        this.summaryType = summaryType;
    }
    public String getSummaryType() 
    {
        return summaryType;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }
    public String getContent() 
    {
        return content;
    }

    public void setAddress(String address) 
    {
        this.address = address;
    }
    public String getAddress() 
    {
        return address;
    }

    public void setBannerImg(String bannerImg) 
    {
        this.bannerImg = bannerImg;
    }
    public String getBannerImg() 
    {
        return bannerImg;
    }

    public String[] getImgList() { return imgList; }
    public void setImgList(String[] imgList) { this.imgList = imgList; }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("summaryType", getSummaryType())
            .append("content", getContent())
            .append("address", getAddress())
            .append("bannerImg", getBannerImg())
            .append("createTime", getCreateTime())
            .append("imgList", getImgList())
            .toString();
    }
}
